const Ajax = window.ajaxbusinessAssets;
const contractAjax = window.ajaxBusinessContract;

//获取指定目录的子集
export const apiMenuSonList = (param) => Ajax.request('/v1/business/menu/info/list', 'post', param, {
  showLoading: true
});

export const dictList = (param) => Ajax.request(`/v1/basic/dict/list`, 'post', param);

//字典多个查询
export const apiDictMoreList = (param) => Ajax.request(`/v1/basic/dict/listByTypes`, 'post', param);

// 省
export const provinceList = (param) => Ajax.request(`v1/sys/province`, 'post', param);
// 市
export const cityList = (param) => Ajax.request(`v1/sys/city`, 'post', param);
// 区
export const areaList = (param) => Ajax.request(`v1/sys/area`, 'post', param);

//审核通过
export const apisuccessAudit = (param) => Ajax.request(`/v1/basic/workInfo/work/successAudit`, 'post', param);
//不通过
export const apifailAudit = (param) => Ajax.request(`/v1/basic/workInfo/work/failAudit`, 'post', param);

//资产包
export const assetPackage = (param) => Ajax.request(`/v1/basic/assetpackage/list`, 'post', param);

//提审
export const apiCreateAudit = (param) => contractAjax.request(`/v1/contract/process/business/createRuOrder`, 'post', param, {
  showLoading: true
});

//撤回提审
export const apiRecall = (param) => contractAjax.request(`/v1/contract/process/business/reCall`, 'post', param, {
  showLoading: true
});

//撤回提审
export const apiConstant = (param) => Ajax.request(`/v1/constant`, 'get', '', {
  showLoading: true
});

